Skip to main content
Feedback

Request Content Limit Policy

You can use the request-content-limit policy to specify a maximum request content length allowed. This limit is compared to the content length header of the request.

If this policy is used and the content-length header is not present, then the call will be rejected unless the request also has a non-empty transfer-encoding header.

Timing

On RequestOn Response
X

Configuration

PropertyRequiredDescriptionTypeDefault
limityesMaximum length of request content allowed.integer

Example

"request-content-limit": {
"limit": 1000
}

Errors

CodeMessage
400The limit from the configuration is not correct.
413Incoming HTTP request payload exceeds the size limit.
411The HTTP request is not chunked and does not specify the Content-Length header.
On this Page